package br.unirio.analise_dna.entity;

import br.unirio.analise_dna.logging.tags.GenericUser;

public class User implements GenericUser{
	
	private int id;
	
	private String first_name;
	private String last_name;
	private String email;
	private String password;
	private String user_type;
	private String dna_sequence;
	
	

	public User (){
		
	}
	
	
	
	
	public User(String first_name, String last_name, String email,
			String password, String user_type) {
		super();
		this.first_name = first_name;
		this.last_name = last_name;
		this.email = email;
		this.password = password;
		this.user_type = user_type;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFirst_name() {
		return first_name;
	}
	public void setFirst_name(String first_name) {
		this.first_name = first_name;
	}
	public String getLast_name() {
		return last_name;
	}
	public void setLast_name(String last_name) {
		this.last_name = last_name;
	}
	public String getUser_type() {
		return user_type;
	}
	public void setUser_type(String user_type) {
		this.user_type = user_type;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public String getDna_sequence() {
		return dna_sequence;
	}




	public void setDna_sequence(String dna_sequence) {
		this.dna_sequence = dna_sequence;
	}


	@Override
	public boolean checkLevel(String level) {
		if(getUser_type().equalsIgnoreCase(level))
			return true;
		return false;
	}
	

}

